package com.xingmei.springbootdemo.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class NoParentServiceImpl {

    public void outMethod() {
        innerMethod();
    }

    @Transactional(rollbackFor = Exception.class)
    public void innerMethod() {

    }
}
